package com.ruoyi.common;


import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

@Data
@AllArgsConstructor
public class Result implements Serializable {



    public static Result SUCCESS(){
        return  new Result(true,"1","执行成功");
    }
    public static Result FAIL(){
        return  new Result(false,"0","执行失败");
    }

    private boolean success;

    private String code;//返回的业务码 1：成功执行 0：发生错误，其他自定义
    private String message;
}
